package com.example.edu.pay;

import com.example.edu.pay.enums.PayType;
import com.example.edu.pay.model.PayOrder;

import java.math.BigDecimal;

/**
 * @author yanzhao
 * @date 2022/2/18 15:03
 * @since 1.0.0
 */
public class PayMain {

    public static void main(String[] args) {
        final PayContext payContext = new PayContext();
        payContext.doPay(new PayOrder(PayType.WX_PAY.name(), "123", new BigDecimal(100)));
        payContext.doPay(new PayOrder(PayType.ALI_PAY.name(), "456", new BigDecimal(100)));
    }
}
